package com.dp;

public class SingletonP {

	public String str = "Str";
	private static SingletonP p;// = new SingletonP();

	private SingletonP() {

	}

	public synchronized static SingletonP getObject() {
		if (p == null) {
			p = new SingletonP();
		}
		return p;
	}
}
